import { NavBar } from 'antd-mobile'
import React, { useMemo } from 'react'
import dayjs from 'dayjs'


function Header() {
    let date=Date.now()
    let nowdate=useMemo(()=>dayjs(date).format('YYYY-MM-DD'))
  return (
    <div>
      <NavBar>
    {nowdate}
      </NavBar>
    </div>
  )
}

export default Header
